package
{
      import com.pblabs.engine.PBE;
      import com.pblabs.engine.core.LevelManager;
      import com.pblabs.rendering2D.ui.SceneView;

      // Set the initial size of the application, and define the
      // maximum frame rate
      [SWF(width="640", height="480", frameRate="60")]
      public class XMLLevelLoader extends SceneView
      {
            public function XMLLevelLoader()
            {
                  // Start the PushButton Engine
                  PBE.startup(this);
                  // Initialize some default PushButton components
                  PBE.initializeScene(this);
                  // Make the embedded resources available to PushButton
                  //PBE.addResources(new ResourceDatabase());
                  // Register the components that will be referenced in
                  // the XML file
                  RegistrationDatabase.RegisterComponents();
                  // Load level 1 as defined in the LevelDescriptions.xml
                  //file
                  LevelManager.instance.load("LevelDescriptions.xml", 1);
            }
      }
}